package com.groupbuying.redpacket.service;

import com.groupbuying.redpacket.domain.ActivityThemeDO;
import com.groupbuying.redpacket.utils.apiresult.ApiResult;

import java.util.List;
import java.util.Map;

/**
 * 活动表
 * 
 * @author vincentxin
 * @email vincentxin@aliyun.com
 * @date 2019-11-22 14:02:14
 * @des
 */

public interface ActivityThemeService {
	
	ActivityThemeDO get(Long id);
	
	List<ActivityThemeDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(ActivityThemeDO activityTheme);
	
	int update(ActivityThemeDO activityTheme);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

	String getThemeName(Long id);

	/**
	 * 增加分类活动
	 * @param activityTheme
	 * @return
	 */
	ApiResult addActivityTheme(ActivityThemeDO activityTheme);

	/**
	 * 修改分类活动
	 * @param activityTheme
	 * @return
	 */
	ApiResult updateActivityTheme(ActivityThemeDO activityTheme);

	/**
	 * 查询所以活动
	 * @return
	 */
	List<ActivityThemeDO> listActivity();
}
